<?php

//
// +------------------------------------------------------------------------+
// | PHP Version 5.4                                                        |
// +------------------------------------------------------------------------+
// | Copyright (c) All rights reserved.                                     |
// +------------------------------------------------------------------------+
// | 世纪车来车往(北京）网络科技有限公司 版权所有！                           |
// | TEL:010-63732365  HOTLINE:400-6688-365  EMAIL:clcw@clcw.com.cn         |
// | $Revision: 1.0 $                                                       |
// +------------------------------------------------------------------------+
// | Author: xiangminghu@clcw.com.cn                                        |
// +------------------------------------------------------------------------+
//

namespace AuctionCore\Account;

use AuctionCore\System\AuctionException;

/**
 * 用户注册日志
 * @author   Xmh
 */
class RegLog {

    /**
     * 添加注册日志
     * @param int $uid          用户ID
     * @param string $reg_ip    注册IP
     * @param string $uuid      IOS、Android设备号
     * @param int $reg_from     注册来源1、IOS 2、Andriod 3、H5 4、Web
     * @return int $id
     */
    public static function add_reg_log($uid, $reg_ip, $uuid = '', $reg_from = 0) {
        $reg_log = array();
        $reg_log['uid'] = $uid;
        $reg_log['uuid'] = $uuid;
        $reg_log['reg_from'] = $reg_from;
        $reg_log['reg_ip'] = $reg_ip;

        $id = M('reg_log')->add($reg_log);
        return $id;
    }

}
